package com.windgo.mapper;

import com.windgo.bean.MarketAddress;
import com.windgo.bean.MarketAddressExample;
import com.windgo.bean.vo.WxCartCheckoutInnerAddressVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketAddressMapper {
    long countByExample(MarketAddressExample example);

    int deleteByExample(MarketAddressExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketAddress row);

    int insertSelective(MarketAddress row);

    List<MarketAddress> selectByExample(MarketAddressExample example);

    MarketAddress selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketAddress row, @Param("example") MarketAddressExample example);

    int updateByExample(@Param("row") MarketAddress row, @Param("example") MarketAddressExample example);

    int updateByPrimaryKeySelective(MarketAddress row);

    int updateByPrimaryKey(MarketAddress row);

    WxCartCheckoutInnerAddressVO queryCheckedAddress(@Param("userId") Integer userId, @Param("addressId") Integer addressId);

    WxCartCheckoutInnerAddressVO queryCheckedAddressDefault(@Param("id") Integer id, @Param("userId") Integer userId);
}